<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>角色管理</title> <#include "/WEB-INF/content/module-index.html">
<script type="text/javascript">
var sysStatus = {
		<#list map["status"] as sysStatus>
		<#if sysStatus_index!=0>
		,
		</#if>
          "${sysStatus.ecode}":"${sysStatus.ename}"
		</#list>
};
function statusFormatter(value,rowData,rowIndex){
 	if(value&&value!="")
	return eval("sysStatus."+value);
	else
		return "未知"; 
}
</script>
</head>
<body>
<body class="easyui-layout">
	<div region="center" style="padding: 5px; background: #eee;">
		<div id="toolbar" >
			<@auth code="sys:role:new"><a href="#" class="easyui-linkbutton"
				plain="true" iconCls="icon-add" style="border: 1px solid #ccc"
				onclick="javascript:add()">新增</a> </@auth> <@auth
			code="sys:role:*:edit"> <a href="#" class="easyui-linkbutton"
				plain="true" iconCls="icon-edit" style="border: 1px solid #ccc"
				onclick="javascript:edit()">编辑</a></@auth> <@auth
			code="sys:role:*:delete"> <a href="#" class="easyui-linkbutton"
				plain="true" iconCls="icon-remove" style="border: 1px solid #ccc"
				onclick="javascript:del()">删除</a></@auth> <@auth
			code="sys:role:*:destroy"> <a href="#" class="easyui-linkbutton"
				plain="true" iconCls="icon-remove" style="border: 1px solid #ccc"
				onclick="javascript:destroy()">销毁</a></@auth>
		</div>
		<table id="grid" class="easyui-datagrid" url="query"
			idField="code" rownumbers="true" striped="true" fitColumns="true"
			fit="true" pagination="true" singleSelect="true" toolbar="#toolbar">
			<thead>
				<tr>
					<th field="code" width="20">编码</th>
					<th field="name" width="100">名称</th>
					<th field="alias" width="100">别名</th>
					<th field="status" width="10" align='center'
						formatter="statusFormatter">状态</th>
					<th field="create_time" width="20">创建时间</th>
				</tr>
			</thead>
		</table>
	</div>
</body>
</body>
</html>